﻿namespace Log.Domain.Aggregates.LogAggregate
{
    public class Log:Entity,IAggregateRoot
    {
        private Log()
        {

        }
        public Log(string projectId,string message,LogLevel logLevel)
        {
            ProjectId = projectId;
            Message = message;
            LogLevel = logLevel;
            CreationTime = DateTime.Now;
        }
        public string Message { get;private set; }
        public DateTime CreationTime { get; private set; }
        public LogLevel LogLevel { get;private set; }
        public string ProjectId { get;private set; }
    }
}
